#FROM registry-vpc.cn-hangzhou.aliyuncs.com/abm/jdk:online
FROM swr.cn-east-3.myhuaweicloud.com/access/jdk:online
ADD jar/* app.jar
ENTRYPOINT ["java","-Xms512m","-Xmx512m","-Xss10m","-XX:MetaspaceSize=384m","-XX:MaxMetaspaceSize=384m","-Xloggc:/opt/logs/gc/engine.log","-XX:HeapDumpPath=/opt/logs/gc/engine.dump","-XX:+HeapDumpOnOutOfMemoryError","-Dfile.encoding=UTF-8","-jar","/app.jar","--spring.profiles.active=dc"]
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone